package com.mk.wardsystemserver.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mk.wardsystemserver.pojo.Medicine;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mk.wardsystemserver.pojo.RespBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zhoubin
 * @since 2022-03-24
 */
public interface MedicineMapper extends BaseMapper<Medicine> {

    /**
     * 药物信息获取
     * @param page
     * @param medicine
     * @return
     */
    IPage<Medicine> getMedicineByPage( Page<Medicine> page, @Param("medicine") Medicine medicine);

    /**
     * 获取name
     * @return
     */
    List<Medicine> getMedicineName();


}
